home *** CD-ROM | disk | FTP | other *** search
- Subject: Paste Exception
- Sent: 6/11/96 8:27 AM
- Received: 6/11/96 9:12 AM
- From: Serge Froment, sfroment@odyssee.net
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Dear ODF Team:
-
- Here is the scenario: my Paste command had called CMyContent::Internalize,
- and the latter had encountered a fatal error in the formatted text. I want
- to warn the user that <<The Paste command could not be completed because
- the pasted text contains "bidule" and I cannot understand that word.>> and
- then abort the command. It seems to me this is the time for an exception. I
- have read ODF Developers Guide and it says very little about throwing
- exceptions. I have searched for FW_DEFINE_EXCEPTION through the whole ODF
- and examples source and found only FW_XException.
-
- So I don't know if I should post an error dialog when I encounter the error
- and throw some standard exception to have the command aborted, or if I
- should really define my own exception class and make sure I catch it
- myself. In the latter case, where do I catch it and what do I do
- thereafter.
-
- Serge
-
-